package com.lwl.office.dcconverter.element;

import com.lwl.office.webeditor.ParserContext;
import lombok.Data;

/**
 * 根节点
 */
@Data
public class DCRoot extends AbsDCElement{


    @Override
    public String toHtml() {
        StringBuilder stb = new StringBuilder();
        for (AbsDCElement child : getChildren()) {
            stb.append(child.toHtml());
        }
        return stb.toString();
    }

    @Override
    public void parseWord(ParserContext context) {
        for (AbsDCElement child : getChildren()) {
            child.parseWord(context);
        }
    }
}
